package JavaUtils.CSUtils.AAttribute;

import JavaUtils.CSUtils.CType;

public class AField extends AIndex {

    public String o_chineseName="", o_chineseExplain="";

    public CType o_fieldType;
    public int o_tableColumeMinWidth = 10;

    public String o_defValue="";

    public AField(byte index, String o_chineseName , CType fieldType  , String explain  ) {
        super(index);
        this.o_chineseName = o_chineseName;
        this.o_fieldType = fieldType;
        this.o_chineseExplain = explain;
    }

    /// <summary>
    /// 生成Excel表格
    /// </summary>
    /// <param name="index"></param>
    /// <param name="chineseName"></param>
    /// <param name="relationObjType">关联类型</param>
    /// <param name="relationObjFieldIndex">关联类型字段</param>
    public AField(byte index, String chineseName, String chineseExplain, String defValue , int o_tableColumeMinWidth  ) {
        super(index);
        this.o_chineseName = chineseName;
        this.o_chineseExplain = chineseExplain.replace("\r\n","//").replace("\n", "//");
        this.o_defValue = defValue;
        this.o_tableColumeMinWidth = o_tableColumeMinWidth;
    }
}
